#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void init(int arr[],int x);
void print(int arr[], int x);
void reserve(int arr[], int x);
int main()
{
	int arr[] = { 1,2,3,4,5 };
	int x =5;
	print(arr, x);
	reserve(arr, x);
	init(arr, x);
	return 0;
}
void init(int arr[],int x)
{
	int i = 0;
	for (i = 0; i < x; i++)
	{
		arr[i] = -1;
		printf("%d", arr[i]);
	}
	printf("\n");
}
void print(int arr[],int x)
{
	for (int i = 0; i < x; i++)
	{
		printf("%d", arr[i]);
	}
	printf("\n");
}
void reserve(int arr[], int x)
{
	for (int i = x - 1; i >= 0; i--)
	{
		printf("%d", arr[i]);
	}
	printf("\n");
}